package timers

import (
	"github.com/astaxie/beego/toolbox"
)

const (
	TIMER_REQUEST_ACCESSTOKEN = "TimerRequestAccessToken"
)

func InitTimer() {
	tk1 := toolbox.NewTask("tk1", "* * */1 * * *", UpdateAccessTokenTimer)
	toolbox.AddTask(TIMER_REQUEST_ACCESSTOKEN, tk1)
	toolbox.StartTask()
}
